package com.tanhua.model.mongo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "voice")
public class Voice implements java.io.Serializable{

    private static final long serialVersionUID = 4595791239198947952L;

    private ObjectId id; //主键id

    private Long created; //创建时间

    private Long userId; //用户id

    private String voiceUrl; //音频文件，URL

    private Boolean flag = false; //标识音频是否被听过

}
